<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>标书制作管理</title>
	<meta name="decorator" content="default"/>
	<link rel="stylesheet" href="${ctxStatic}/common/bootstrap.min.css">
	<link rel="stylesheet" href="${ctxStatic}/common/AdminLTE.min.css">
	<link rel="stylesheet" href="${ctxStatic}/common/jeesite.css">
	<script src="${ctxStatic}/jquery-validation/1.16/jquery.validate.js"></script>
	<script src="${ctxStatic}/jquery-validation/1.16/jquery.validate.extend.js"></script>
	<script src="${ctxStatic}/jquery-validation/1.16/localization/messages_zh_CN.js"></script>
	<style type="text/css">
		.font-style{
			 padding-top: 3px;
		     color: #a2a2a2;
		}
	</style>
	<script type="text/javascript">
		
		
	</script>
</head>
<body>
	
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/zx/makeTender/list">标书制作列表</a></li>
		<li class="active"><a href="${ctx}/zx/makeTender/show?lzdId=${makeTender.lzdId}&sectionId=${makeTender.sectionId}">查看详情</a></li>
	</ul>
	<div class="main-content">
	  <div class="box box-main">
	  	
	  	<form:form id="inputForm" modelAttribute="makeTender" action="${ctx}/zx/makeTender/save" method="post" class="form-horizontal">
			<form:hidden path="id"/>
			<form:hidden path="lzdId"/>
			<form:hidden path="tenderFlag"/>
			<sys:message content="${message}"/>	
			<div class="box-body">
				<!-- 项目详情 -->
				<div id="proInfo1">
					<div class="form-unit">基本信息 
						<span style="float: right">
							<a href="${ctx}/zx/all/lzd/getLzdAllInfo?lzdId=${makeTender.lzdId}&sectionId=${makeTender.sectionId}&pageFlag=makeTender"> 查看更多项目详情>></a>
						</span>
					</div>
					<div class="row">
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 项目名称：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-8 font-style">
									${makeTender.lzd.proName}
								</div>
							</div>
						</div>
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 项目负责人：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-8 font-style">							
									${makeTender.lzd.proPic}
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 标书完成时间：<i class="fa icon-question hide"></i>
								</label>
								<div class="col-sm-8 font-style">
									<fmt:formatDate value="${makeTender.lzd.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/>				
								</div>
							</div>
						</div>
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 采购单位：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-8 font-style">
									${makeTender.lzd.buyUnit}
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 项目参数文件：<i class="fa   icon-question hide"></i>
								</label>
								<div class="col-sm-8 font-style">
									<form:hidden id="proParamFile" path="lzd.proParamFile" htmlEscape="false" maxlength="100" class="input-xlarge"/>
									<sys:ckfinder input="proParamFile" type="files" readonly="true" uploadPath="/zx/proParamFile" selectMultiple="true"/>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!-- 标段信息 -->
				<c:if test="${makeTender.lzd.isSubpackage eq '1'}">
					<div class="form-unit">标段信息</div>
					<div class="row">
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 标段名称：<i class="fa icon-question hide"></i>
								</label>
								<div class="col-sm-8 font-style">
									${makeTender.section.sectionName}
								</div>
							</div>
						</div>
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 项目预算(<font style="color: red">万元</font>)：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-8 font-style">
									${makeTender.section.budgetMoney}
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 折扣：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-8 font-style">
									${makeTender.section.discount}
								</div>
							</div>
						</div>
						<%-- <div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 保证金：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-8 font-style">
									${makeTender.section.earnestMoney}
								</div>
							</div>
						</div> --%>
					</div>
				</c:if>
				<!-- ---------------分割符-------------------->
				<div class="form-unit">标书制作信息</div>
					<div class="row">
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 项目编码：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-8 font-style">
									${mt.proNo}
								</div>
							</div>
						</div>
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 标书制作人：<i class="fa icon-question hide"></i>
								</label>
								<div class="col-sm-8 font-style">
									${mt.makeTenderBy}
								</div>
							</div>
						</div>
					</div>
					<div class="control-group"  style="padding-bottom:0px"></div>
					<div class="row">
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 审核人：<i class="fa icon-question hide"></i>
								</label>
								<div class="col-sm-8 font-style">
									${mt.auditor}
								</div>
							</div>
						</div>
						<div class="col-xs-6">
							<div class="form-group">
								<label class="control-label col-sm-4" title="">
									<span class="required hide">*</span> 项目执行人：<i class="fa icon-question hide"></i>
								</label>
								<div class="col-sm-8 font-style">
									${mt.proPerformer}
								</div>
							</div>
						</div>
					</div>
					<div class="control-group"  style="padding-bottom:0px"></div>
					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 备注信息：<i class="fa icon-question hide"></i>
								</label>
								<div class="col-sm-10 font-style">
									${mt.remarks}
								</div>
							</div>
						</div>
					</div>	
					<c:if test="${fn:length(mt.fileList) > 0}">
						<div class="form-unit">标书文件</div>
					</c:if>
					<c:forEach items="${mt.fileList}" var="e" varStatus="st">
						<c:if test="${not empty e.fileUrl}">
							<div class="row">
								<div class="col-xs-12">
									<div class="form-group">							
										<div class="col-sm-8" style="margin-left: 60px">								
											<input type="hidden" id="tenderFile${st.index}" name="fileList[${st.index}].fileUrl" value="${e.fileUrl}">								
											<sys:ckfinder input="tenderFile${st.index}" readonly="true" type="files" uploadPath="/zx/tenderFile" selectMultiple="false"/>
											<span class="label label-success" style="margin-left: 5px;font-size: 90%;font-weight: 400;">上传时间：<fmt:formatDate value="${e.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
											<c:if test="${mt.tenderFlag eq '1'}">
												<span class="label label-success" style="margin-left: 5px;font-size: 90%;font-weight: 400;">定稿标书</span>
											</c:if>	
											<c:if test="${e.auditState eq '1'}">
												<span class="label label-success" style="margin-left: 5px;font-size: 90%;font-weight: 400;">审核时间：<fmt:formatDate value="${e.auditDate}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
												<span class="label label-success" style="margin-left: 5px;font-size: 90%;font-weight: 400;">审核通过</span>
											</c:if>
											<c:if test="${e.auditState eq '2'}">
												<span class="label label-success" style="margin-left: 5px;font-size: 90%;font-weight: 400;">审核时间：<fmt:formatDate value="${e.auditDate}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
												<span class="label label-danger" style="margin-left: 5px;font-size: 90%;font-weight: 400;" title="${e.auditContent}">未通过审核</span>
											</c:if>							
										</div>
									</div>
								</div>
							</div>	
						</c:if>
					</c:forEach>
				<div class="form-actions" style="background-color: #fff">
					
					<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)" style="background-color: #e7e7e7;"/>
				</div>
			</div>
		</form:form>
	  </div>
	</div>
</body>
</html>